/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.targeter.rulesengine.model;

import com.liferay.portal.kernel.bean.AutoEscape;
import com.liferay.portal.model.BaseModel;
import com.liferay.portal.model.CacheModel;
import com.liferay.portal.service.ServiceContext;

import com.liferay.portlet.expando.model.ExpandoBridge;

import java.io.Serializable;

/**
 * The base model interface for the rules service. Represents a row in the &quot;rulesEngine_rules&quot; database table, with each column mapped to a property of this class.
 *
 * <p>
 * This interface and its corresponding implementation {@link com.targeter.rulesengine.model.impl.rulesModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link com.targeter.rulesengine.model.impl.rulesImpl}.
 * </p>
 *
 * @author jsalaice
 * @see rules
 * @see com.targeter.rulesengine.model.impl.rulesImpl
 * @see com.targeter.rulesengine.model.impl.rulesModelImpl
 * @generated
 */
public interface rulesModel extends BaseModel<rules> {
	/*
	 * NOTE FOR DEVELOPERS:
	 *
	 * Never modify or reference this interface directly. All methods that expect a rules model instance should use the {@link rules} interface instead.
	 */

	/**
	 * Returns the primary key of this rules.
	 *
	 * @return the primary key of this rules
	 */
	public long getPrimaryKey();

	/**
	 * Sets the primary key of this rules.
	 *
	 * @param primaryKey the primary key of this rules
	 */
	public void setPrimaryKey(long primaryKey);

	/**
	 * Returns the rule ID of this rules.
	 *
	 * @return the rule ID of this rules
	 */
	public long getRuleId();

	/**
	 * Sets the rule ID of this rules.
	 *
	 * @param ruleId the rule ID of this rules
	 */
	public void setRuleId(long ruleId);

	/**
	 * Returns the model of this rules.
	 *
	 * @return the model of this rules
	 */
	@AutoEscape
	public String getModel();

	/**
	 * Sets the model of this rules.
	 *
	 * @param model the model of this rules
	 */
	public void setModel(String model);

	/**
	 * Returns the rule name of this rules.
	 *
	 * @return the rule name of this rules
	 */
	@AutoEscape
	public String getRuleName();

	/**
	 * Sets the rule name of this rules.
	 *
	 * @param ruleName the rule name of this rules
	 */
	public void setRuleName(String ruleName);

	/**
	 * Returns the active of this rules.
	 *
	 * @return the active of this rules
	 */
	public boolean getActive();

	/**
	 * Returns <code>true</code> if this rules is active.
	 *
	 * @return <code>true</code> if this rules is active; <code>false</code> otherwise
	 */
	public boolean isActive();

	/**
	 * Sets whether this rules is active.
	 *
	 * @param active the active of this rules
	 */
	public void setActive(boolean active);

	/**
	 * Returns the drl file of this rules.
	 *
	 * @return the drl file of this rules
	 */
	@AutoEscape
	public String getDrlFile();

	/**
	 * Sets the drl file of this rules.
	 *
	 * @param drlFile the drl file of this rules
	 */
	public void setDrlFile(String drlFile);

	public boolean isNew();

	public void setNew(boolean n);

	public boolean isCachedModel();

	public void setCachedModel(boolean cachedModel);

	public boolean isEscapedModel();

	public Serializable getPrimaryKeyObj();

	public void setPrimaryKeyObj(Serializable primaryKeyObj);

	public ExpandoBridge getExpandoBridge();

	public void setExpandoBridgeAttributes(ServiceContext serviceContext);

	public Object clone();

	public int compareTo(rules rules);

	public int hashCode();

	public CacheModel<rules> toCacheModel();

	public rules toEscapedModel();

	public String toString();

	public String toXmlString();
}